package me.zhengjie.modules.weixin.message.custom;

public class CustomMiniProgramPageMessage extends AbstractCustomMessage {

    public CustomMiniProgramPageMessage() {
        setMsgtype("miniprogrampage");
    }

    public CustomMiniProgramPageMessage(String title, String appid, String pagepath, String thumbMediaId) {
        this();
        this.miniprogrampage = new MiniProgramPageMessage(title, appid, pagepath, thumbMediaId);
    }

    public CustomMiniProgramPageMessage(MiniProgramPageMessage miniprogrampage) {
        this();
        this.miniprogrampage = miniprogrampage;
    }

    private MiniProgramPageMessage miniprogrampage;

    public MiniProgramPageMessage getMiniprogrampage() {
        return miniprogrampage;
    }

    public void setMiniprogrampage(MiniProgramPageMessage miniprogrampage) {
        this.miniprogrampage = miniprogrampage;
    }

    public static class MiniProgramPageMessage {

        public MiniProgramPageMessage() {
        }

        public MiniProgramPageMessage(String title, String appid, String pagepath, String thumbMediaId) {
            this.title = title;
            this.appid = appid;
            this.pagepath = pagepath;
            this.thumb_media_id = thumbMediaId;
        }

        private String title;

        private String appid;

        private String pagepath;

        private String thumb_media_id;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAppid() {
            return appid;
        }

        public void setAppid(String appid) {
            this.appid = appid;
        }

        public String getPagepath() {
            return pagepath;
        }

        public void setPagepath(String pagepath) {
            this.pagepath = pagepath;
        }

        public String getThumb_media_id() {
            return thumb_media_id;
        }

        public void setThumb_media_id(String thumb_media_id) {
            this.thumb_media_id = thumb_media_id;
        }
    }
}
